var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('view/login', { title: 'login' });
});

router.get("/toIndex",function (req,res,next) {
    console.log("here i am");
    res.render('index');
});

router.get("/toInformation",function (req,res,next) {
    console.log("here i am");
    res.render('view/information');
});

router.get("/toWriteQuestion",function (req,res,next) {
    res.render("view/writequestion");
});

router.get("/toContact",function (req,res,next) {
    res.render("view/contact");
});

router.get("/toPersonalCenter",function (req,res,next) {
    res.render("view/personalcenter");
})

// router.get("/toSetting",function (req,res,next) {
//     res.render("view/setting");
// })

module.exports = router;
